package yl.hs.bmipfull.pojo.production;

import lombok.Data;
import lombok.EqualsAndHashCode;
import yl.hs.bmipfull.annotations.DBField;
import yl.hs.bmipfull.annotations.DBTable;
import yl.hs.bmipfull.pojo.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/*
 * BrickShipOrderEntity
 * @category
 * @author 谢景广
 * @date 2022-12-13
 */
@EqualsAndHashCode(callSuper = true)
@Data
@DBTable(disName = "化肥发货单",mapCode = "brick_ship_order")
public class BrickShipOrderEntity extends BaseEntity {
    private Long id;
    @DBField(isSerialNumber = true,disName = "编号",mapCode = "sn",snPrefix = "ZFHD")
    private String sn;
    private String contractSN;
    private String customerSN;
    @DBField(disName = "客户名称",mapCode = "customerName")
    private String customerName;
    @DBField(disName = "发货时间",mapCode = "outTime")
    private Date outTime;
    @DBField(disName = "产品规格",mapCode = "productName")
    private String productName;
    private String customerNamePY;
    @DBField(disName = "车牌号",mapCode = "truckPlate")
    private String truckPlate;
    private String handleSN;
    @DBField(disName = "过磅员",mapCode = "handleName")
    private String handleName;
    @DBField(disName = "联系人",mapCode = "linkerName")
    private String linkerName;
    @DBField(disName = "联系电话",mapCode = "linkerPhone")
    private String linkerPhone;
    @DBField(disName = "销售员",mapCode = "salerName")
    private String salerName;
    @DBField(disName = "销售电话",mapCode = "salerPhone")
    private String salerPhone;
    private String driverSN;
    @DBField(disName = "司机姓名",mapCode = "driverName")
    private String driverName;
    @DBField(disName = "打印标题",mapCode = "printTitle")
    private String printTitle;
    @DBField(disName = "发货备注",mapCode = "remark")
    private String remark;
    @DBField(disName = "回厂时间",mapCode = "backTime")
    private Date backTime;
    @DBField(disName = "打印次数",mapCode = "printCount")
    private int printCount;
    private String contractUnit;
    @DBField(disName = "创建时间",mapCode = "createTime")
    private Date createTime;

    private BigDecimal orgGrossWeight = BigDecimal.ZERO;
    @DBField(disName = "毛重",mapCode = "grossWeight")
    private BigDecimal grossWeight = BigDecimal.ZERO;
    @DBField(disName = "皮重",mapCode = "tareWeight")
    private BigDecimal tareWeight = BigDecimal.ZERO;
    private BigDecimal orgTareWeight = BigDecimal.ZERO;
    @DBField(disName = "净重",mapCode = "netWeight")
    private BigDecimal netWeight = BigDecimal.ZERO;
    private String shipmentReviewUserSN;
    @DBField(disName = "审核人",mapCode = "shipmentReviewUserName")
    private String shipmentReviewUserName;
    @DBField(disName = "审核状态",mapCode = "shipmentReviewFlag")
    private String shipmentReviewFlag;
    @DBField(disName = "审核时间",mapCode = "shipmentReviewTime")
    private Date shipmentReviewTime;
    @DBField(disName = "签收人",mapCode = "signer")
    private String signer;
    @DBField(disName = "签收时间",mapCode = "signingTime")
    private Date signingTime;
    private short state;
    @DBField(disName = "运费审核状态",mapCode = "freightState")
    private short freightState;
    @DBField(disName = "运费审核时间",mapCode = "freightReviewTime")
    private Date freightReviewTime;
    @DBField(disName = "运费金额",mapCode = "freightReviewAmount")
    private BigDecimal freightReviewAmount = BigDecimal.ZERO;
    private String freightReviewUserSN;
    @DBField(disName = "运费审核人",mapCode = "freightReviewUserName")
    private String freightReviewUserName;
    @DBField(disName = "运费审核备注",mapCode = "freightReviewRemark")
    private String freightReviewRemark;
    private BigDecimal freightAmount = BigDecimal.ZERO;
    @DBField(disName = "发货块数",mapCode = "quantity")
    private BigDecimal quantity;
    @DBField(disName = "发货方量",mapCode = "volume")
    private BigDecimal volume;
    @DBField(disName = "销售订单编号",mapCode = "saleOrderSN")
    private String saleOrderSN;
}
